package com.cyw.search.service;

import cn.easyes.core.biz.PageInfo;
import com.cyw.common.core.domain.R;
import com.cyw.search.entity.note.SearchNoteEntity;

import java.util.List;

/**
 * @Author: Chenyw
 * @Date: 2022/11/02/15:40
 */
public interface SearchNoteEntityService {
    R<PageInfo<SearchNoteEntity>> searchAllNote(String searchText, Integer pageNum, Integer pageSize);

    SearchNoteEntity findById(String id);

    List<SearchNoteEntity> findHotNote();

    SearchNoteEntity writeNote(SearchNoteEntity searchNoteEntity);

    R<PageInfo<SearchNoteEntity>> findAllNote(Integer pageNum, Integer pageSize);
}
